package com.wash.shoes.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 分销商,按照区域分销
 * @TableName os_region_distributor
 */
@Data
@TableName("os_region_distributor")
@ApiModel(value = "分销商,按照区域分销")
public class RegionDistributorPo implements Serializable {
    /**
     * 主键
     */
    @ApiModelProperty(value = "id")
    private String id;

    /**
     * 关联用户的Id
     */
    @ApiModelProperty(value = "关联用户的Id")
    private String userId;

    /**
     * 省
     */
    @ApiModelProperty(value = "省")
    private String provinces;

    /**
     * 市
     */
    @ApiModelProperty(value = "市")
    private String city;

    /**
     * 县
     */
    @ApiModelProperty(value = "县")
    private String country;

    /**
     * 详细地址
     */
    @ApiModelProperty(value = "详细地址")
    private String address;

    /**
     * 名称
     */
    @ApiModelProperty(value = "名称")
    private String name;

    /**
     * 电话
     */
    @ApiModelProperty(value = "电话")
    private String phone;

    /**
     * 身份证名称
     */
    @ApiModelProperty(value = "身份证名称")
    private String cardName;

    /**
     * 身份证号码
     */
    @ApiModelProperty(value = "身份证号码")
    private String cardNumber;

    /**
     * 储银行卡号
     */
    @ApiModelProperty(value = "储银行卡号")
    private String bankCardNumber;

    /**
     * 分成比例
     */
    @ApiModelProperty(value = "分成比例")
    private Double shareRatio;

    /**
     * 推广收益
     */
    @ApiModelProperty(value = "推广收益")
    private Double promotionProfit;

    /**
     * 推广的人数
     */
    @ApiModelProperty(value = "推广的人数")
    private Integer promotionNum;

    /**
     * 推广小程序订单数
     */
    @ApiModelProperty(value = "推广小程序订单数")
    private Integer promotionOrderNum;

    /**
     * 状态0禁用 1启用
     */
    @ApiModelProperty(value = "状态0禁用 1启用")
    private Integer status;

    /**
     * 备注
     */
    private String remark;

    /**
     * 扩展字段
     */
    private String extendInfo;

    @TableField(value = "create_by", fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建者")
    private String createBy;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @TableField(value = "update_by", fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "更新者")
    private String updateBy;

    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

}